import http from '@/assets/js/http';

// 生成模型
export const createModel = (data) => http.post('/apiv2/user/createModel', data);

// 图片生成模型
export const createImgModel = (data) => http.post('/apiv2/user/createImgModel', data);

// 生成图片
export const createImg = (data) => http.post('/apiv2/user/createImg', data);

// 获取模型列表
export const getModelList = (data) => http.post('/apiv2/index/modelList', data);

// 获取模型类型
export const getModelTypeList = () => http.post('/apiv2/index/modelType');

// 模型详情
export const getModelDetail = (data) => http.post(`/apiv2/index/modelDetail`, data);

// 模型删除
export const modelDelete = (data) => http.post(`/apiv2/index//modelDelete?model_id=${data.model_id}`);

// 作品点赞
export const modelLike = (data) => http.post(`/apiv2/user/like`, data);

// 作品收藏
export const modelCollect = (data) => http.post(`/apiv2/user/collect`, data);

// 作品点评
export const modelComment = (data) => http.post(`/apiv2/user/modelScore`, data);

//作品下载
export const download = (data) => http.post(`/apiv2/user/download`, data);

//生成高清
export const createHdModel = (data) => http.post(`/apiv2/user/hdModel`, data);